/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CU003.java
 *
 * Created on 03/11/2012, 12:37:55
 */
package victory;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

/**
 *
 * @author Enrique
 */
public class CU003 extends javax.swing.JPanel {

    /** Creates new form CU003 */
    public CU003() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel7 = new javax.swing.JLabel();
        scp_competencia = new javax.swing.JScrollPane();
        tabla_competencia = new javax.swing.JTable();
        jLabel6 = new javax.swing.JLabel();
        boton_salir = new javax.swing.JButton();
        boton_crearCompetencia = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        boton_buscar = new javax.swing.JButton();
        label_nombreCompetencia = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        cb_estado = new javax.swing.JComboBox();
        nombreCompetencia = new javax.swing.JTextField();
        label_estado = new javax.swing.JLabel();
        label_modalidadCompetencia = new javax.swing.JLabel();
        label_deporteAsociado = new javax.swing.JLabel();
        cb_modalidadCompetencia = new javax.swing.JComboBox();
        cb_deporteAsociado = new javax.swing.JComboBox();
        boton_verCompetencia = new javax.swing.JButton();

        setMinimumSize(new java.awt.Dimension(800, 600));
        setName("Form"); // NOI18N

        jLabel7.setName("jLabel7"); // NOI18N

        scp_competencia.setName("scp_competencia"); // NOI18N

        tabla_competencia.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Nombre", "Deporte", "Modalidad", "Estado"
            }
        ));
        tabla_competencia.setName("tabla_competencia"); // NOI18N
        scp_competencia.setViewportView(tabla_competencia);

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(victory.VictoryApp.class).getContext().getResourceMap(CU003.class);
        jLabel6.setFont(resourceMap.getFont("jLabel6.font")); // NOI18N
        jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
        jLabel6.setName("jLabel6"); // NOI18N

        boton_salir.setText(resourceMap.getString("boton_salir.text")); // NOI18N
        boton_salir.setName("boton_salir"); // NOI18N
        boton_salir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_salirActionPerformed(evt);
            }
        });

        boton_crearCompetencia.setText(resourceMap.getString("boton_crearCompetencia.text")); // NOI18N
        boton_crearCompetencia.setName("boton_crearCompetencia"); // NOI18N
        boton_crearCompetencia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_crearCompetenciaActionPerformed(evt);
            }
        });

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Filtro de Búsqueda", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), null)); // NOI18N
        jPanel1.setName("jPanel1"); // NOI18N

        boton_buscar.setText(resourceMap.getString("boton_buscar.text")); // NOI18N
        boton_buscar.setName("boton_buscar"); // NOI18N

        label_nombreCompetencia.setText(resourceMap.getString("label_nombreCompetencia.text")); // NOI18N
        label_nombreCompetencia.setName("label_nombreCompetencia"); // NOI18N

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        cb_estado.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<Seleccione una>", "Creada", "Planificada", "En Disputa", "Finalizada" }));
        cb_estado.setName("cb_estado"); // NOI18N

        nombreCompetencia.setName("nombreCompetencia"); // NOI18N

        label_estado.setText(resourceMap.getString("label_estado.text")); // NOI18N
        label_estado.setName("label_estado"); // NOI18N

        label_modalidadCompetencia.setText(resourceMap.getString("label_modalidadCompetencia.text")); // NOI18N
        label_modalidadCompetencia.setName("label_modalidadCompetencia"); // NOI18N

        label_deporteAsociado.setText(resourceMap.getString("label_deporteAsociado.text")); // NOI18N
        label_deporteAsociado.setName("label_deporteAsociado"); // NOI18N

        cb_modalidadCompetencia.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<Seleccione una>", "Eliminación Simple", "Eliminación doble", "Liga" }));
        cb_modalidadCompetencia.setName("cb_modalidadCompetencia"); // NOI18N

        cb_deporteAsociado.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "<Seleccione una>", "Futbol", "Basket", "Tenis", "Hockey" }));
        cb_deporteAsociado.setName("cb_deporteAsociado"); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(boton_buscar)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(12, 12, 12)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(label_nombreCompetencia)
                            .addComponent(label_deporteAsociado)
                            .addComponent(label_modalidadCompetencia)
                            .addComponent(label_estado))
                        .addGap(33, 33, 33)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(cb_deporteAsociado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(nombreCompetencia, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cb_modalidadCompetencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cb_estado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(35, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(label_nombreCompetencia)
                    .addComponent(nombreCompetencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(label_deporteAsociado)
                    .addComponent(cb_deporteAsociado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(label_modalidadCompetencia)
                    .addComponent(cb_modalidadCompetencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(label_estado)
                    .addComponent(cb_estado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(boton_buscar)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        boton_verCompetencia.setText(resourceMap.getString("boton_verCompetencia.text")); // NOI18N
        boton_verCompetencia.setName("boton_verCompetencia"); // NOI18N
        boton_verCompetencia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_verCompetenciaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(224, 224, 224)
                        .addComponent(jLabel7)
                        .addGap(0, 556, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel6)
                        .addGap(0, 653, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(boton_verCompetencia)
                                .addGap(18, 18, 18)
                                .addComponent(boton_crearCompetencia)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 119, Short.MAX_VALUE)
                                .addComponent(boton_salir))
                            .addComponent(scp_competencia, javax.swing.GroupLayout.DEFAULT_SIZE, 428, Short.MAX_VALUE))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel6)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(11, 11, 11)
                        .addComponent(scp_competencia, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(boton_salir)
                            .addComponent(boton_verCompetencia)
                            .addComponent(boton_crearCompetencia)))
                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 54, Short.MAX_VALUE)
                .addComponent(jLabel7)
                .addGap(239, 239, 239))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void boton_salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_salirActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_boton_salirActionPerformed

    private void boton_verCompetenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_verCompetenciaActionPerformed
        // TODO add your handling code here:
        this.removeAll();
        this.setLayout(new FlowLayout());
        this.add(new CU020(), BorderLayout.CENTER);
        this.updateUI();
}//GEN-LAST:event_boton_verCompetenciaActionPerformed

    private void boton_crearCompetenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_crearCompetenciaActionPerformed
        // TODO add your handling code here:
        this.removeAll();
        this.setLayout(new FlowLayout());
        this.add(new CU004(), BorderLayout.CENTER);
        this.updateUI();
    }//GEN-LAST:event_boton_crearCompetenciaActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton boton_buscar;
    private javax.swing.JButton boton_crearCompetencia;
    private javax.swing.JButton boton_salir;
    private javax.swing.JButton boton_verCompetencia;
    private javax.swing.JComboBox cb_deporteAsociado;
    private javax.swing.JComboBox cb_estado;
    private javax.swing.JComboBox cb_modalidadCompetencia;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JLabel label_deporteAsociado;
    private javax.swing.JLabel label_estado;
    private javax.swing.JLabel label_modalidadCompetencia;
    private javax.swing.JLabel label_nombreCompetencia;
    private javax.swing.JTextField nombreCompetencia;
    private javax.swing.JScrollPane scp_competencia;
    private javax.swing.JTable tabla_competencia;
    // End of variables declaration//GEN-END:variables
}
